home *** CD-ROM | disk | FTP | other *** search
/ Champak 139 / (Vol 139) Sep 24 2011.iso / Games / kirby.swf / scripts / frame_12 / PlaceObject2_263_206 / CLIPACTIONRECORD onClipEvent(load).as < prev   
Text File  |  2011-09-24  |  2KB  |  92 lines

  1. onClipEvent(load){
  2.    function Blockpuff(Block)
  3.    {
  4.       duplicateMovieClip(_root.Level.BPuff,"Bpuff" add _root.BlockPZ,16384 + _root.BlockPZ);
  5.       _root.Level["Bpuff" add _root.BlockPZ]._x = _root.Level["B" add Block]._x;
  6.       _root.Level["Bpuff" add _root.BlockPZ]._y = _root.Level["B" add Block]._y;
  7.       _root.BlockPZ += 1;
  8.       if(5 < _root.BlockPZ)
  9.       {
  10.          _root.BlockPZ = 1;
  11.       }
  12.    }
  13.    function runstaub()
  14.    {
  15.       duplicateMovieClip(_root.Level.runstaub,"runstaub" add RstaubZ,16384 + (RstaubZ + 100));
  16.       _root.Level["runstaub" add RstaubZ]._x = this._x - _root.Level._x;
  17.       _root.Level["runstaub" add RstaubZ]._y = this._y - _root.Level._y;
  18.       _root.Level["runstaub" add RstaubZ]._xscale = this._xscale;
  19.       _root.Level["runstaub" add RstaubZ].gotoAndPlay(1);
  20.       RstaubZ += 1;
  21.       if(5 < RstaubZ)
  22.       {
  23.          RstaubZ = 1;
  24.       }
  25.       _root.Level.runstaub._x = this._x - _root.Level._x;
  26.       _root.Level.runstaub._y = this._y - _root.Level._y;
  27.    }
  28.    if(_root.SetKeys == "on")
  29.    {
  30.       up = _root.Buttonup;
  31.       down = _root.Buttondown;
  32.       left = _root.Buttonleft;
  33.       right = _root.Buttonright;
  34.       attack = _root.Buttonattack;
  35.       Jump = _root.ButtonJump;
  36.       SPout = _root.ButtonDrop;
  37.    }
  38.    else
  39.    {
  40.       up = "38";
  41.       down = "40";
  42.       left = "37";
  43.       right = "39";
  44.       attack = "18";
  45.       Jump = "32";
  46.       SPout = "13";
  47.    }
  48.    BoomZ = 50;
  49.    _root.Door = 0;
  50.    JumpDown = "off";
  51.    SPattack = "off";
  52.    normMainSpeed = 7;
  53.    Jumpspeed = 15;
  54.    Jumptime = 5;
  55.    YSpeed = 10;
  56.    isjumping = "off";
  57.    isAttacking = "off";
  58.    normGravity = 3;
  59.    normMaxYSpeed = 10;
  60.    MinusX = 1;
  61.    Yform = 100;
  62.    FlySpeed = 5;
  63.    Fly = "off";
  64.    Fat = "off";
  65.    spit = "off";
  66.    Spiting = "off";
  67.    XMSpace = 200;
  68.    YMSpace = 125;
  69.    YMSpaceD = 50;
  70.    Movheight = 300;
  71.    Movwidth = 450;
  72.    _root.Movheight = 300;
  73.    _root.Movwidth = 450;
  74.    CSPattack = "off";
  75.    attackdemo = "off";
  76.    SPAStarBreak = 0.95;
  77.    MSPattack = "off";
  78.    _root.Blocks = 20;
  79.    _root.Grounds = 10;
  80.    hit = "off";
  81.    Ypos = "disabled";
  82.    SPAStarVisZ = 200;
  83.    _root.WaddleDees = 5;
  84.    var forvar2 = 1;
  85.    while(_root.WaddleDees >= forvar2)
  86.    {
  87.       _root.Level["WaddleDee" add forvar2].X = 2;
  88.       forvar2++;
  89.    }
  90.    DY = 10;
  91. }
  92.